Возвращает услугу по ее идентификатору.
Security
bearerAuth or jwtCookie
- https://felmee.comhttps://felmee.com/api/service/{service_id}
- http://localhost:8080http://localhost:8080/api/service/{service_id}
curl -i -X GET \
'https://felmee.com/api/service/{service_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Услуга успешно получена
Устаревший camelCase-alias поля error_code; при ошибке оба поля содержат одинаковое значение.
Код ошибки. Для успешных ответов всегда null.
Enum:"INVALID_BODY""INVALID_DATE""invalid_body""unauthorized""not_found""slot_unavailable""conflict""BUSINESS_INACTIVE""INSUFFICIENT_FUNDS""REQUISITES_REQUIRED"
Response
{ "success": true, "message": "Service retrieved successfully", "codeError": null, "error_code": null, "data": { "id": 20, "url": "https://felmee.com/services/20", "images": [ … ], "name": "Мужская стрижка", "price": 1500, "base_price": 1500, "final_price": 1350, "discount_percent": 10, "duration": 60, "description": "Стрижка с мытьем головы и укладкой.", "category_id": 3, "parent_category_id": 1, "provider_id": 5, "provider_type": "SALON", "provider_name": "Beauty Salon", "reviews_count": 12, "rating": 4.75, "price_intervals": [], "is_fix_price": true, "service_locations": [ … ], "address": "г. Москва, ул. Тверская, д.16", "advantages": [ … ], "seo_queries": [ … ], "geo": { … }, "masters": [ … ], "working_days": [ … ] } }